package com.dc.refactoring._6_处理概括关系._6_ExtractSubclass.step5;

/**
 * Description: 按零件收费时，调用的类
 * @author: gdc
 * @date: 2020/12/12
 * @version 1.0
 */
public class PartsItem extends JobItem {

    /**
     * 零件收费价格
     */
    private int unitPrice;

    public PartsItem(int unitPrice, int quantity) {
        super(quantity);
        this.unitPrice = unitPrice;
    }

    /**
     * 获取报价
     */
    @Override
    public int getUnitPrice() {
        return unitPrice;
    }


}
